package com.hjx.entity;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

/**
 * (SysApply)实体类
 *
 * @author makejava
 * @since 2020-06-09 08:07:08
 */
public class SysApply implements Serializable {
    private static final long serialVersionUID = 638299230917352875L;
    /**
    * 申请编号
    */
    private String aid;
    /**
    * 用户编号
    */
    private SysUser user = new SysUser();
    /**
    * 部门编号
    */
    private SysDepartment department = new SysDepartment();
    /**
     * 入部/退部 理由
     */
    private String cause;
    /**
     * 申请状态码
     */
    private Integer applyStatus;
    /**
    * 申请创建时间
    */
    private LocalDateTime createTime=LocalDateTime.now();

    public String getAid() {
        return aid;
    }

    public SysApply setAid(String aid) {
        this.aid = aid;
        return this;
    }

    public SysUser getUser() {
        return user;
    }

    public SysApply setUser(SysUser user) {
        this.user = user;
        return this;
    }

    public SysDepartment getDepartment() {
        return department;
    }

    public SysApply setDepartment(SysDepartment department) {
        this.department = department;
        return this;
    }

    public String getCause() {
        return cause;
    }

    public SysApply setCause(String cause) {
        this.cause = cause;
        return this;
    }

    public Integer getApplyStatus() {
        return applyStatus;
    }

    public SysApply setApplyStatus(Integer applyStatus) {
        this.applyStatus = applyStatus;
        return this;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public SysApply setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
        return this;
    }

    @Override
    public String toString() {
        return "SysApply{" +
                "aid='" + aid + '\'' +
                ", user=" + user +
                ", department=" + department +
                ", cause='" + cause + '\'' +
                ", applyStatus=" + applyStatus +
                ", createTime=" + createTime +
                '}';
    }
}
